﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="oyintech.Admin.inpiao365.general.nodeContent.edit" %>

<%@ Register Src="~/checkRight.ascx" TagName="checkRight" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>内容编辑</title>
    <script language="javascript" type="text/javascript">
        var DG = frameElement.lhgDG;
        function ok() {
            // 这里写你要操作的代码，最后写刷新代码 
            DG.curWin.location.href = DG.curWin.location.href;
        } 

        function checkedAll() {
            //alert("abc");
            var oo = document.getElementsByTagName("input");
            var selectstate = document.getElementById("selectAll");
            for (var k = 0, len = oo.length; k < len; k++) {
                var e = oo[k];
                if (e.type == "checkbox") {
                    e.checked = selectstate.checked;
                }
            }
        }  
               
        function ShowDialog() {
            var arr;
            arr = self.showModalDialog('/core/selectAttachment.aspx', window, 'dialogWidth:500px; dialogHeight:430px;help:0;status:0;resizeable:1;');
            if (arr != null) {
                var imgArr = arr[0];
                if (imgArr != null) {
                    document.getElementById("ImageUrl").value = imgArr;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position">
        <span>内容编辑</span>
    </div>
    <br />
    <jui:HFPanel ID="HFPanel1" runat="server">
        <table border="0" cellpadding="0" cellspacing="1" width="99%" align="center" class="datatable">
            <tr class="row1" style="display:none;">
                <td class="check">
                    内容编号：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="ID" runat="server" ChineseName="内容编号" PropertyName="ID" FieldType="整型"
                        NotNUll="True">0</jui:HFTextBox>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    所属栏目：
                </td>
                <td>
                    <jui:HFDropDownList ID="ddlNodeID" runat="server" ChineseName="所属栏目" PropertyName="NodeID"
                        FieldType="整型"></jui:HFDropDownList>
                </td>                
                <td class="check">
                    添加时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="AddDate" runat="server" ChineseName="添加时间" PropertyName="AddDate"
                        NotNUll="True"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    添加人员：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="AddUserName" runat="server" ChineseName="添加人员" PropertyName="AddUserName"
                        NotNUll="True" FieldLength="50"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    最后编辑人员：
                </td>
                <td>
                    <jui:HFTextBox ID="LastEditUserName" runat="server" ChineseName="最后编辑人员" PropertyName="LastEditUserName"
                        NotNUll="True" FieldLength="50"></jui:HFTextBox>
                </td>
                <td class="check">
                    最后编辑时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="LastEditDate" runat="server" ChineseName="最后编辑时间" PropertyName="LastEditDate"
                        NotNUll="True"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    排序：
                </td>
                <td>
                    <jui:HFTextBox ID="ContentOrder" runat="server" ChineseName="排序" PropertyName="ContentOrder"
                        FieldType="整型" NotNUll="True">1</jui:HFTextBox>
                </td>
                <td class="check">
                    审核状态：
                </td>
                <td>
                    <jui:HFTextBox ID="IsChecked" runat="server" ChineseName="审核状态" PropertyName="IsChecked"
                        NotNUll="True">True</jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    审核层级：
                </td>
                <td>
                    <jui:HFTextBox ID="CheckedLevel" runat="server" ChineseName="审核层级" PropertyName="CheckedLevel"
                        FieldType="整型" NotNUll="True">0</jui:HFTextBox>
                </td>
                <td class="check">
                    点击次数：
                </td>
                <td>
                    <jui:HFTextBox ID="Hits" runat="server" ChineseName="点击次数" PropertyName="Hits" FieldType="整型"
                        NotNUll="True">0</jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    日点击次数：
                </td>
                <td>
                    <jui:HFTextBox ID="HitsByDay" runat="server" ChineseName="日点击次数" PropertyName="HitsByDay"
                        FieldType="整型" NotNUll="True">0</jui:HFTextBox>
                </td>
                <td class="check">
                    周点击次数：
                </td>
                <td>
                    <jui:HFTextBox ID="HitsByWeek" runat="server" ChineseName="周点击次数" PropertyName="HitsByWeek"
                        FieldType="整型" NotNUll="True">0</jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    月点击次数：
                </td>
                <td>
                    <jui:HFTextBox ID="HitsByMonth" runat="server" ChineseName="月点击次数" PropertyName="HitsByMonth"
                        FieldType="整型" NotNUll="True">0</jui:HFTextBox>
                </td>
                <td class="check">
                    最后点击时间：
                </td>
                <td>
                    <jui:HFDatePicker ID="LastHitsDate" runat="server" ChineseName="最后点击时间" PropertyName="LastHitsDate"
                        NotNUll="True"></jui:HFDatePicker>
                </td>
            </tr>
            <tr class="row1" style="display:none;">
                <td class="check">
                    扩展字段：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="SettingsXML" runat="server" ChineseName="扩展字段" PropertyName="SettingsXML"
                        FieldLength="2000"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    标题：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="Title" runat="server" ChineseName="标题" PropertyName="Title" NotNUll="True"
                        FieldLength="255" Width="290px"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    副标题：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="SubTitle" runat="server" ChineseName="副标题" PropertyName="SubTitle"
                        FieldLength="255" Width="290px"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    标志图片：
                </td>
                <td>
                    <jui:HFTextBox ID="ImageUrl" runat="server" ChineseName="标志图片" PropertyName="ImageUrl" FieldLength="255" Width="290px"></jui:HFTextBox>&nbsp;<a class="btn" href="javascript:void(0);"><span onclick="return ShowDialog()" style="cursor:hand;"><label class="add">选择/上传图片</label></span></a>
                </td>
                <td class="check">
                    外链地址：
                </td>
                <td>
                    <jui:HFTextBox ID="LinkUrl" runat="server" ChineseName="外链地址" PropertyName="LinkUrl"
                        FieldLength="1000" Width="290px"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    附件地址：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="FileUrl" runat="server" ChineseName="附件地址" PropertyName="FileUrl"
                        FieldLength="1000" Width="290px"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    内容正文：
                </td>
                <td colspan="3">
                    <textarea name="Content" id="Content" runat="server"></textarea>
                    <asp:Literal ID="litContent" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr class="row2">
                <td class="check">
                    摘要：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="Summary" runat="server" ChineseName="摘要" 
                        PropertyName="Summary" TextMode="MultiLine" Height="60px" Width="390px"></jui:HFTextBox>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    作者：
                </td>
                <td>
                    <jui:HFTextBox ID="Author" runat="server" ChineseName="作者" PropertyName="Author"
                        FieldLength="50"></jui:HFTextBox>
                </td>
                <td class="check">
                    来源：
                </td>
                <td>
                    <jui:HFTextBox ID="Source" runat="server" ChineseName="来源" PropertyName="Source"
                        FieldLength="50"></jui:HFTextBox>&nbsp;
                    <asp:DropDownList ID="ddlSource" runat="server" onchange='document.getElementById("Source").value = this.value;'></asp:DropDownList>
                </td>
            </tr>
            <tr class="row1">
                <td class="check">
                    属性：
                </td>
                <td class="check">                
                    <asp:CheckBox ID="cbIsRecommend" runat="server" Text="推荐" ChineseName="是否推荐" PropertyName="IsRecommend" />
                    <asp:CheckBox ID="cbIsHot" runat="server" Text="热点" ChineseName="是否热点" PropertyName="IsHot" />
                    <asp:CheckBox ID="cbIsColor" runat="server" Text="醒目" ChineseName="是否醒目" PropertyName="IsColor" />
                    <asp:CheckBox ID="cbIsTop" runat="server" Text="置顶" ChineseName="是否置顶" PropertyName="IsTop" />
                </td>
                <td class="check">
                    内容标签：
                </td>
                <td colspan="3">
                    <jui:HFTextBox ID="Tag" runat="server" ChineseName="内容标签" PropertyName="Tag"
                        FieldLength="100" Width="290px"></jui:HFTextBox><br /> (请用“,”或“;”分隔多个标签) 
                </td>
            </tr>
            <tr class="row2">
                <td colspan="4" class="fontC" align="center">
                    <jui:HFButton ID="btnSave" runat="server" CssClass="BigButton" Text="确定" OnClick="btnSave_Click" />
                    &nbsp;&nbsp;
                    <input type="button" value="返回" class="BigButton" onclick="DG.cancel();" />
                </td>
            </tr>
        </table>
    </jui:HFPanel>
    <uc1:checkRight ID="checkRight1" runat="server" />
    </form>
</body>
</html>
